package com.hs.mapper;

import com.hs.entity.ClassQaAnswer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassQaAnswerMapper {
    int deleteById(Integer id);
    int addClassQaAnswer(ClassQaAnswer classQaAnswer);
    int updateClassQaAnswer(ClassQaAnswer classQaAnswer);
    ClassQaAnswer getClassQaAnswerById(Integer id);
    List<ClassQaAnswer> getClassQaAnswerByClassALL();
    //多对一
    List<ClassQaAnswer> getClassQaAnswerByClassQaQuestionId(int cqqId);
}
